<script setup>
  function goBack(){
    history.go(-1)
  }
</script>

<template>
  <el-empty description="内容不存在">
    <el-button type="primary" size="large" @click="goBack">首页</el-button>
  </el-empty>
</template>